package com.voute.Api;

import com.voute.Model.Bean.BaseBean;
import com.voute.Model.Bean.SimpleNotificationBean;
import com.voute.Model.Bean.UnreadNotificationBean;

import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by xianke on 22/04/2017.
 */

public interface PushNotificationService {
    @GET("v1/users/self/push/feeds")
    Observable<SimpleNotificationBean> requestPushNotifications(@Query("page") String page);

    @GET("v1/users/self/push/feeds/count")
    Observable<UnreadNotificationBean> requestUnreadNotificationNum();

    @DELETE("v1/users/self/push/feeds")
    Observable<BaseBean> setAllNessageReaded();
}
